<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <myslot>
            <h3>slot槽口</h3>
            <h3>0</h3>
            <div>123</div>
        </myslot>
    </div>
    <template id="myslotT">
        <div>
            <h1>这里是带有slot的组件start</h1>
            <slot></slot>
            <h1>这里是带有slot的组件end</h1>
        </div>
    </template>
</body>
<script src="js/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        components: {
            myslot: {
                template: "#myslotT"
            }
        }
    })
</script>

</html>